//水仙花数
public class Demo01 {
    public static void main(String[] args) {
        int g, s, b;
        for (int i = 100; i < 1000; i++) {
            g = i % 10;
            s = i / 10 % 10;
            b = i / 100;
            if (g * g * g + s * s * s + b * b * b == i)
                System.out.println(i);
        }
    }
}
